﻿using Microsoft.Extensions.Options;

namespace IOP.Pulsar.Options
{
    /// <summary>
    /// TCP主机配置
    /// </summary>
    public class TCPServerOption : IOptions<TCPServerOption>
    {
        /// <summary>
        /// 配置值
        /// </summary>
        public TCPServerOption Value => this;

        /// <summary>
        /// 地址
        /// </summary>
        public string Address { get; set; } = "";

        /// <summary>
        /// 端口
        /// </summary>
        public int Port { get; set; }

        /// <summary>
        /// 服务器名
        /// </summary>
        public string ServerName { get; set; } = "";
    }
}
